<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.Map" %>
<%@ page import="javax.faces.context.FacesContext"%>
<%@ page import="com.synchroflow.common.I18NTools"%>

<%
    Object o1=null;
    Object o2=null;
    String path = request.getContextPath();
	if(FacesContext.getCurrentInstance()!=null)
	{
		Map checkParaMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
		o1=checkParaMap.get("user");
		o2=checkParaMap.get("loginManager");
	}
	else
	{
	    o1=session.getAttribute("user");
	    o2=session.getAttribute("loginManager");
	}
	if( o1==null && o2 == null){	
%>  
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/newPage.css">
			<table>
		    <tr height="150"><td></td></tr>
		    </table>
			<table align="center" width="386" height="227" cellpadding="0" cellspacing="0" class="outerTable">
				<tr bgcolor="#efefef" height="40">
					<td class="tableTitle">
					<img src="<%=request.getContextPath()%>/images/prompt.gif" style="border:none">
					<font class="contentLabel"><%=I18NTools.getString("com.synchroflow.common.resource","message")%></font>
					</td>
					<td align="right">
					
					</td>
				</tr>
				<tr height="1" bgcolor="99c1ee">
				<td colspan="2"></td>
				</tr>
				<tr>
					<td class="contentLabel" align="center" colspan="2">
					<font class="contentLabel"><%=I18NTools.getString("com.synchroflow.common.resource","message_login_check")%></font>
					</td>	
				</tr>
								<tr>
					<td class="contentLabel" align="center" colspan="2"><input type="button" value="<%=I18NTools.getString("com.synchroflow.common.resource","message_login_re")%>" onclick="location.href='<%=path%>/login_frame.jsf'"/></td>
				</tr>
				<tr height="1" bgcolor="99c1ee">
				<td colspan="2"></td>
				</tr>
				<tr bgcolor="#efefef" height="6">
					<td colspan="2"></td>
				</tr>
			</table>

<%
return;
}
%>
